#include "Server.hpp"

int main()
{
    Server server;
    server.OpenPipeRead();
    string message;
    while(true)
    {

        if(server.RecvPipe(&message) > 0)
        {
            cout<<"Client say#"<<message<<endl;
        }
        else break;
    }
    cout<<"CLient quit,me too"<<endl;
    server.ClosePipe();
    return 0;
}